package com.lz.springboot.disconf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baidu.disconf.client.DisconfMgrBean;
import com.baidu.disconf.client.DisconfMgrBeanSecond;

@Configuration  
public class DisConfig {
	
	@Bean(destroyMethod = "destroy")
	public DisconfMgrBean getDisconfMgrBean() {
		DisconfMgrBean disconfMgrBean = new DisconfMgrBean();
		disconfMgrBean.setScanPackage("com.lz.springboot.disconf");
		return disconfMgrBean;
	}

	@Bean(destroyMethod = "destroy", initMethod = "init")
	public DisconfMgrBeanSecond getDisconfMgrBean2() {
		return new DisconfMgrBeanSecond();
	}
}